﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace z.m.db {
	[MetadataType(typeof(Metadata.MRoles))]
	public partial class webpages_Roles { }
	[MetadataType(typeof(Metadata.MUserProfile))]
	public partial class UserProfile {
		public bool IsAdmin {get;set;}
		public void refreshIsAdmin() {
			IsAdmin=webpages_Roles.Where(x=>x.RoleName=="Admin").Count()>0;
		}
	}
	[MetadataType(typeof(Metadata.MOrder))]
	public partial class Order {}
	[MetadataType(typeof(Metadata.MOccasion))]
	public partial class Occasion { }
	[MetadataType(typeof(Metadata.MOccasion_Detail))]
	public partial class EventDetail { }
}